﻿using Arms.Application.Modules.DiningRoom;
using Arms.Application.Modules.DiningRoom.DTOs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Arms.Presentation.Web.Controllers
{
    public class DiningRoomController : BaseController
    {
        private readonly IDiningRoomQueryService _query;

        public DiningRoomController(IDiningRoomQueryService query)
        {
            _query = query;
        }

        public ActionResult Current()
        {
            var dto = _query.FindLayout(base.UserData.AppData.CurrentDiningRoomLayoutID);
            return View(dto);
        }

        public ActionResult Table(int id)
        {
            var dto = _query.FindTable(id);
            return View(dto);
        }

        public ActionResult New()
        {
            throw new NotImplementedException();
        }

        public ActionResult Edit(int id)
        {
            throw new NotImplementedException();
        }
    }
}
